import request from '@/utils/request'

export const list = function(params){
  return request({
    url: '/product_import_export/list',
    method: 'get',
    params: params,
  })
}

export const add = function(params){
  return request({
    url: '/product_import_export/add',
    method: 'post',
    data: params,
  })
}


export const editGet = function(params){
  return request({
    url: '/product_import_export/edit',
    method: 'get',
    params: params,
  })
}

export const editPost = function(params){
  return request({
    url: '/product_import_export/edit',
    method: 'post',
    data: params,
  })
}

export const del = function(params){
  return request({
    url: '/product_import_export/del',
    method: 'post',
    data: params,
  })
}

export const specNameList = function(params){
  return request({
    url: '/product_import_export/specification_name',
    method: 'get',
    params: params,
  })
}

export const outputNameList = function(params){
  return request({
    url: '/product_import_export/output_name_list',
    method: 'get',
    params: params,
  })
}

export const inputNameList = function(params){
  return request({
    url: '/product_import_export/input_name_list',
    method: 'get',
    params: params,
  })
}

export const maleNameList = function(params){
  return request({
    url: '/product_import_export/male_name_list',
    method: 'get',
    params: params,
  })
}

export const femaleNameList = function(params){
  return request({
    url: '/product_import_export/female_name_list',
    method: 'get',
    params: params,
  })
}

export const importExportList = function(params){
  return request({
    url: '/product_import_export/import_export_type_list',
    method: 'get',
    params: params,
  })
}
